<?php
/*
 * Auther Bachue
 * This File contains one Function about Database Connection
 * And some other Arguments about Database tables and fields
 * All Database Arguments are here.
 * You can modify them to profit your database environment
 */

$dbconf['groups_tablename']='groups';
$dbconf['groups_groupname_columnname']='groupname';
$dbconf['groups_username_columnname']='username';
$dbconf['privileges_tablename']='privileges';
$dbconf['privileges_reponame_columnname']='reponame';
$dbconf['privileges_path_columnname']='path';
$dbconf['privileges_privilege_columnname']='privilege';
$dbconf['privileges_name_columnname']='name';

function getPdoConnection()
{
    return new PDO('mysql:dbname=svn;host=127.0.0.1;port=3306',
                   'root', 'root',
                   array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\''));
}

?>
